//
//  FoodDetail.m
//  DeliciousFoodBible
//
//  Created by lanou3g on 15/7/21.
//  Copyright (c) 2015年 孙连爽. All rights reserved.
//

#import "FoodDetail.h"
#import "ImageDownLoader.h"
@implementation FoodDetail

-(void)startDownImage{
    
    //使用下载图片类中的block传值方式的下载方法
    ImageDownLoader *load = [ImageDownLoader new];
    [load requestImageUrl:_image_url successBlock:^(NSData *data) {
        //下载成功，就给coverImage对象赋值
        self.coverImage = [UIImage imageWithData:data];
    } errorBlock:^(NSError *error) {
        
    }];
    
}

@end
